import {NgModule} from '@angular/core';
import {SharedModule} from "@shared/shared.module";
import {ConfirmOrderComponent} from "@order/confirm-order/confirm-order.component";
import {OrderRoutingModule} from "@order/order-routing.module";
import {OrderComponent} from "@order/order.component";
import {OrderService} from "@order/order.service";
import {MineService} from '@mine/mine.service';
import {GoodsService} from '@goods/goods.service';
import {OrderListComponent} from "@order/order-list/order-list.component";
import {OrderItemComponent} from "@order/components/order-item/order-item.component";
import {OrderDetailComponent} from "@order/order-detail/order-detail.component";
import {OrderGoodsComponent} from "@order/components/order-goods/order-goods.component";
import {GoodsComponentsModule} from "@goods/components/components.module";
import {HaggleService} from "../haggle/haggle.service";
import {FormsModule, ReactiveFormsModule} from "@angular/forms";

@NgModule({
  imports: [
    SharedModule,
    OrderRoutingModule,
    GoodsComponentsModule,
    FormsModule,
    ReactiveFormsModule
  ],
  declarations: [
    OrderComponent,
    ConfirmOrderComponent,
    OrderListComponent,
    OrderItemComponent,
    OrderDetailComponent,
    OrderGoodsComponent
  ],
  providers: [
    OrderService,
    MineService,
    GoodsService,
    HaggleService
  ]
})

export class OrderModule {
}
